/*!
 * \file ejb_comm.h
 *
 * \brief ejb 数据解析
 *
 * All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.\n
 *
 * \version 3.0
 * \author wuwk
 * \date 2016/03/21
 *
 */

#ifndef __EJB_COMM_H_
#define __EJB_COMM_H_

#define RMI_ARRAY            "RMI:["
#define RMI_JAVA_STRING           "java.lang.String;"
#define RMI_JAVA_OBJECT           "java.lang.Object;"

#define IS_WEBLOGIC        1
#define IS_WAS                 2

int __alignment(Frbyte_Packet *p_st_data, int i_pos, int i_alignment);
int ejb_rtn_boolean_array(Frbyte_Packet *p_st_data
                                  , Frreport_body_data *p_st_body_data
                                  , uint32_t u32_count
                                  , char *p_key);
int ejb_rtn_byte_array(Frbyte_Packet *p_st_data
                               , Frreport_body_data *p_st_body_data
                               , uint32_t u32_count
                               , char *p_key);
int ejb_rtn_char_array(Frbyte_Packet *p_st_data
                               , Frreport_body_data *p_st_body_data
                               , uint32_t u32_count
                               , char *p_key);
int ejb_rtn_short_array(Frbyte_Packet *p_st_data
                               , Frreport_body_data *p_st_body_data
                               , uint32_t u32_count
                               , char *p_key);
int ejb_rtn_int_array(Frbyte_Packet *p_st_data
                              , Frreport_body_data *p_st_body_data
                              , uint32_t u32_count
                              , char *p_key);
int ejb_rtn_long_array(Frbyte_Packet *p_st_data
                               , Frreport_body_data *p_st_body_data
                               , uint32_t u32_count
                               , char *p_key);
int ejb_rtn_float_array(Frbyte_Packet *p_st_data
                                , Frreport_body_data *p_st_body_data
                                , uint32_t u32_count
                                , char *p_key);
int ejb_rtn_double_array(Frbyte_Packet *p_st_data
                                 , Frreport_body_data *p_st_body_data
                                 , uint32_t u32_count
                                 , char *p_key);
int ejb_rtn_string_array(Frbyte_Packet *p_st_data
                                 , Frreport_body_data *p_st_body_data
                                 , uint32_t u32_count
                                 , char *p_key
                                 , int i_pos
                                 , int i_type);

#endif